package com.guang.springbootselfmvc.annotation;

import com.guang.springbootselfmvc.config.WebConfig;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration;
import org.springframework.boot.autoconfigure.web.servlet.HttpEncodingAutoConfiguration;
import org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration;
import org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryAutoConfiguration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

import java.lang.annotation.*;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@ImportAutoConfiguration(
    classes = {ServletWebServerFactoryAutoConfiguration.class, HttpEncodingAutoConfiguration.class, DispatcherServletAutoConfiguration.class, MultipartAutoConfiguration.class, WebConfig.class}
)
@EnableWebMvc
public @interface ImportWebConfiguration {
}